package com.ruoyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.entity.FileDataEntity;
import com.ruoyi.entity.FileEntity;
import com.ruoyi.entity.originImageEntity;
import com.ruoyi.entity.originVideoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Chen Lin
 * @date 2022.03.21  5:16 PM
 * @description
 */
@Mapper
public interface FileMapper extends BaseMapper<originVideoEntity> {
    //存入原始图片信息
    Integer saveBatchImage(@Param("entity") originImageEntity entity);
    //获取任务对应所有的图片
    List<originImageEntity> getImageBatchInfo(@Param("taskId") String taskId);
    //获取任务对应的视频List
    List<originVideoEntity> getVedioList(@Param("taskId") String taskId);
    //根据id更新图片数据库
    Integer updateImage(@Param("imagesNameCompose") String imagesNameCompose,@Param("id") Integer id);
    //根据id删除图片数据库
    Integer deleteImage(@Param("id") Integer id);
    public void savePneumaticFile(@Param("entity") FileEntity entity);
    void saveFileData(@Param("po") FileDataEntity fileData);
    void saveFileResultData(@Param("po") FileDataEntity fileResultData);
}
